Skip to content

Destdir install#172

Open
dagbrown wants to merge 5 commits intolunar-linux:masterfrom
dagbrown:destdir_install
Open

Destdir install#172
dagbrown wants to merge 5 commits intolunar-linux:masterfrom
dagbrown:destdir_install

Conversation

@dagbrown
Copy link
Copy Markdown
Member

Install modules by first using the (quite-common) DESTDIR to install the module into a staging directory, creating the cache from that, and then resurrecting the cache, rather than just installing directly onto the main filesystem.

DESTDIR builds create a cache file with relative paths, not absolute
paths (which is probably safer in general). Ensure this isn't a problem
by changing to the root directory before expanding them.
Basically, you can say `lvu set DESTDIR_BUILD on` and Lunar
will default to doing a DESTDIR build. You can also put the line
"DESTDIR_BUILD=off" or "DESTDIR_BUILD=on" in modules' DETAILS files to
force it to work one way or another.
Basically, do everything that uses installwatch twice: once using
installwatch, and once using DESTDIR.

Also the actual installation of finished packages is moved into
create_destdir_install_cache which is almost certainly the wrong place
for it, but there it is for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant